<template>
  <div class="home">
    <div class="toggle-bar">
      <router-link to="/page1"><span class="toggle-bar__item">page1</span></router-link>
      <router-link to="/page2"><span class="toggle-bar__item">page2</span></router-link>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "home",
  data() {
    return {

    }
  }
}
</script>

<style scoped>
  .home{
    width: 100vw;
    height: 100vh;
  }
  .toggle-bar{
    font-size: 0;
  }
  .toggle-bar__item{
    display: inline-block;
    width: 50%;
    line-height: 80px;
    background: cadetblue;
    color: white;
    font-size: 16px;
    text-align: center;
  }
</style>
